package com.fenghongzhang.day012eventbus;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

import org.greenrobot.eventbus.EventBus;

public class Main2Activity extends AppCompatActivity {
    private Button btn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        EventBus.getDefault().postSticky("哈哈哈哈");

        Intent intent = new Intent(this, MainActivity.class);
        startActivity(intent);

//        btn = (Button) findViewById(R.id.btn);

    }
}
